import request from '@/utils/axios';

// 获取管理员信息
export interface AdminInfo {
  id: number;
  avatarUrl: string;
  name: string;
  phoneNumber: string;
  email: string;
}

// 更新管理员信息
export function updateAdminInfo(data: AdminInfo) {
  return request({
    url: '/updateAdminInfo',
    method: 'put',
    data
  });
}

